	
		$("table").addClass("ui-widget");
		$("table").addClass("ui-widget-content");
		$("th").addClass("ui-widget-header");
		$( "input:submit" ).button();
		$( "input:button" ).button();
		$( "input:file" ).button();
	//	$( "a" ).button();
		$("#back").button().addClass('small_button');
		$("#home").button().addClass('small_button');
		$("#logout").button().addClass('small_button');
		/*$("#logout").button({
			"width": '10px'
		});*/
		$("h2").addClass("ui-widget-header");
		$("h1").addClass("ui-widget-header");
	
		var outerDiv = $("<div id='loading'> </div>").appendTo("body");
	  	var loadingImgDiv = $("<div id='loadingImgDiv'> </div>").appendTo(outerDiv);
		$(window).load(function(){
			//alert("hhhh");
			$("#loading").hide();
			
		});
		$(window).unload(function(){
			//alert("hhhh");
			//loadingImg[0].src = 'images/loading.gif';
			
			//loadingDiv[0].style.backgroundRepeat = 'no-repeat;';
			//$("#loading").show();
			//$("#loading").show();
			$("#loading").show();
			//setTimeout($("#loading").show(),500);
			loadingImgDiv[0].style.backgroundImage = 'url(images/loading.gif)';
			//alert("unloaded");
		});
	function showDialog(id) {
		
		$("#"+id).dialog({
			modal: true,
			buttons: {
				Ok: function() {
					$( this ).dialog( "close" );
				}
				
			},
			position: ["center",200],
			width: 'auto',
			height: 'auto'
		});
	}